repo: Add new API to write config with reload+validation
authorColin Walters <walters@verbum.org>
Wed, 9 Jul 2025 22:04:08 +0000 (18:04 -0400)
committerColin Walters <walters@verbum.org>
Wed, 9 Jul 2025 22:27:43 +0000 (18:27 -0400)
commitf4b0322885670128c9d37f6e627a627c2b66b6d6
treeb500cffb792defdab21624a87aca9626fa7e2727
parent23113fbfb6dae92a80e3495d6688caa4196b3e9a
repo: Add new API to write config with reload+validation

The `ostree config set` CLI should really disallow
writing invalid values. To implement that, add a new
API that also *reloads* to the new config, and
rolls back on failure.

Closes: https://github.com/ostreedev/ostree/issues/1827
Signed-off-by: Colin Walters <walters@verbum.org>
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-config.c
tests/test-config.sh